<?xml version="1.0" encoding= "UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:form>
		<p:menubar>

			<p:menuitem styleClass="title" rendered="#{not empty userBean.self}"
				value="Welcome to Network, #{userBean.self.firstName}  #{userBean.self.lastName}"
				action="#{profileBean.toSelfPage}" />

			<f:facet name="options">
				<p:commandButton value="Login" action="#{navigationBean.toLogin}"
					rendered="#{empty accountBean.currentUser}" />
				<p:commandButton value="Logout" action="#{accountBean.logout}"
					rendered="#{not empty accountBean.currentUser}" />
			</f:facet>
		</p:menubar>
	</h:form>
</ui:composition>
</html>